window: Avoid double event processing in the multipress event controller
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 27 May 2014 10:14:17 +0000 (12:14 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Tue, 27 May 2014 15:47:12 +0000 (17:47 +0200)
The events to those are fed outside the regular event propagation scheme,
through _gtk_window_check_handle_wm_event(), so set the controller to
GTK_PHASE_NONE so events aren't processed first manually, and then
automatically.

gtk/gtkwindow.c

index cdd67bc5440f4c83bd56008e7bfb038a56ea6d5f..d009ec416b8013c13ff854f9107c409e563cb39f 100644 (file)
@@ -1595,8 +1595,6 @@ gtk_window_constructor (GType                  type,
                         G_CALLBACK (multipress_gesture_pressed_cb), object);
       g_signal_connect (priv->multipress_gesture, "stopped",
                         G_CALLBACK (multipress_gesture_stopped_cb), object);
-      gtk_event_controller_set_propagation_phase (GTK_EVENT_CONTROLLER (priv->multipress_gesture),
-                                                  GTK_PHASE_CAPTURE);
     }
 
   return object;